Telegram Group & Telegram Channel
# پاسخ تمرین شماره 2
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
oper = ''
nums = []
num1 = int(input(' عدد اول را وارد کنید: '))
nums.append(num1)
while oper != '=':
oper = input('عملگر انتخابی خود را وارد کنید (/,*,-,+,=): ')
nums.append(oper)
if oper == '=' :
print(nums, num1)
break
num2 = int(input(' عدد بعدی را وارد کنید: '))
nums.append(num2)
if oper == '+':
num1 = add(num1, num2)
elif oper == '*':
num1 = mul(num1, num2)
elif oper == '/':
num1 = div(num1, num2)
elif oper == '-':
num1 = min(num1, num2)
print(num1)



tg-me.com/python12/1307
Create:
Last Update:

# پاسخ تمرین شماره 2
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
oper = ''
nums = []
num1 = int(input(' عدد اول را وارد کنید: '))
nums.append(num1)
while oper != '=':
oper = input('عملگر انتخابی خود را وارد کنید (/,*,-,+,=): ')
nums.append(oper)
if oper == '=' :
print(nums, num1)
break
num2 = int(input(' عدد بعدی را وارد کنید: '))
nums.append(num2)
if oper == '+':
num1 = add(num1, num2)
elif oper == '*':
num1 = mul(num1, num2)
elif oper == '/':
num1 = div(num1, num2)
elif oper == '-':
num1 = min(num1, num2)
print(num1)

BY پایتون / python


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python12/1307

View MORE
Open in Telegram


پایتون python Telegram | DID YOU KNOW?

Date: |

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

How Does Bitcoin Work?

Bitcoin is built on a distributed digital record called a blockchain. As the name implies, blockchain is a linked body of data, made up of units called blocks that contain information about each and every transaction, including date and time, total value, buyer and seller, and a unique identifying code for each exchange. Entries are strung together in chronological order, creating a digital chain of blocks. “Once a block is added to the blockchain, it becomes accessible to anyone who wishes to view it, acting as a public ledger of cryptocurrency transactions,” says Stacey Harris, consultant for Pelicoin, a network of cryptocurrency ATMs. Blockchain is decentralized, which means it’s not controlled by any one organization. “It’s like a Google Doc that anyone can work on,” says Buchi Okoro, CEO and co-founder of African cryptocurrency exchange Quidax. “Nobody owns it, but anyone who has a link can contribute to it. And as different people update it, your copy also gets updated.”

پایتون python from us


Telegram پایتون / python
FROM USA